from app.expertise.schemas import ExpertiseRelated
from pydantic import BaseModel, EmailStr
from typing import Optional, List


class ExpertBase(BaseModel):
    first_name: str
    last_name: str
    patronymic: str
    position: str
    education: str
    experience: int
    address: str 
    phone_number: str 
    email: Optional[EmailStr]
    vacation_information: str


class ExpertCreate(ExpertBase):
    pass


class ExpertUpdate(ExpertBase):
    pass


class ExpertRelated(ExpertBase):
    id: int
    expertises: List[ExpertiseRelated]

class ExpertSchema(ExpertBase):
    id: int
